﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ESSManageService.Enum.DBEnum;
using SqlSugar;

namespace ESSManageService.Model.DBModels.Info
{
    /// <summary>
    /// 角色
    /// </summary>
    [SugarTable("Role_Info", tableDescription: "角色信息表")]
    public class Role
    {
        /// <summary>
        ///自增ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "id", IsIdentity = true, ColumnDescription = "主键Id")]
        public int Id { get; set; }
        /// <summary>
        /// 角色名
        /// </summary>
        [SugarColumn(ColumnName = "name",Length = 50, IsNullable = true)]
        public string Name { get; set; }
        /// <summary>
        /// 角色类型
        /// </summary>
        [SugarColumn(ColumnName = "role_type", IsNullable = true, ColumnDescription = "角色类型")]
        public RoleTypeEnum RoleType { get; set; }
    }
}
